package receiver;

// 接收者 - 空调
public class AirConditioner {
    private int temperature = 24;
    
    public void on() {
        System.out.println("Air conditioner is ON, temperature: " + temperature);
    }
    
    public void off() {
        System.out.println("Air conditioner is OFF");
    }
    
    public void setTemperature(int temperature) {
        this.temperature = temperature;
        System.out.println("Temperature set to: " + temperature);
    }
    
    public int getTemperature() {
        return temperature;
    }
}